GBML manual / Using the editor

Rooms, tiles and tile animation

Painting a room's tiles and placing instances in the Room Editor tab, and where animated tile groups stand today.

This page is the how; Rooms and Tile animation are the what

Rooms covers what a room is made of, and Tile animation covers what an animated tile group actually does at runtime. This page covers the Room Editor tab's own mechanics for painting and placing them - the Help Center's own Rooms topic and Tile painting topic cover the same tool from its own side.

Instances

Drag an object from the project browser onto the room canvas to place an instance. Select, move with snapping, duplicate and delete it; a selected instance's own creation code is edited from the same panel. Right-click an instance for its own context menu, which includes Assign path… - see The Paths tab for what that dialog asks.

Painting tiles

Paint from a tileset directly onto a room's tile layer. The canvas can overlay each cell's own flags (solid, or whatever a project has named its own collision flags as, per Rooms) so you can see what you are painting without a separate collision pass, and a wall-band guide shows how thick a painted wall has to be to actually reach the room's real, walkable edge - a wall that only looks solid but does not reach that boundary is a real mistake this guide exists specifically to catch before it ships.

Sprites per line

View > Sprites per line shows how many sprite pieces share each screen line, and the Validate list warns about a room that goes over. A console draws only so many on one line and the rest vanish. The Game Boy and Game Boy Color fit 10 pieces per line. The Game Boy Advance has no fixed count: it has a time budget per line, which fits 151 pieces that are 8 pixels wide (a 16 pixel wide sprite counts as 2, a 32 pixel wide one as 4). A sprite that is rotated or scaled costs about twice as much, and the view does not know about that, so count each rotated or scaled sprite as double.

Animating a tile group

There is no Rooms-tab dialog for this yet. Animated groups are real and drivable from GBML today (Tile animation, tile_anim_frame/tile_anim_pause), but nothing in this tab - or anywhere else in the editor - currently authors one. A group is declared on the tileset asset, not the room (a tileset used by several rooms would animate the same way in every one of them, authored once), and today that means hand-editing the project's game.gbabel.json directly: see Tile animation for the exact field shape (settings.tileAnims on the tileset asset) and the reserved-tile-index-0 rule that shape's raw indices are subject to.

No editor surface exists for this yet - do not go looking for a button.

See also: RoomsTile animationThe Paths tabThe Code tab